package com.xxx.chat.message;

import lombok.Data;
import lombok.ToString;

/**
 * 聊天室：加入群请求
 */
@Data
@ToString(callSuper = true)
public class GroupJoinRequestMessage extends Message {

    private String groupName;   // 群组名称
    private String username;    // 用户名

    public GroupJoinRequestMessage(String username, String groupName) {
        this.groupName = groupName;
        this.username = username;
    }

    @Override
    public int getMessageType() {
        return GroupJoinRequestMessage;
    }
}
